package com.stedu.mapper;

import com.stedu.bean.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper {
    //查询所有
    List<Department> findAll();
    //根据name查询
    Department findByDname(String dname);
    //根据ID查询
    Department findByDid(Integer did);
    //添加
    int add(Department department);
    //删除
    int del(Integer did);
    //修改
    int update(Department department);
}
